home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / graphics / show40a.arj / GUIDE.EXE / GUIDESCR.SHW < prev    next >
Text File  |  1993-12-01  |  7KB  |  236 lines

  1. ;*******************************************************************;
  2. ; Sciptname..:  Guidescr.SHW                                        ;
  3. ; Date.......:  1st. Dec. 1993, by RMP DATA.                        ;
  4. ; Purpose....:  Part of the demonstration script GUIDE.SHW.         ;
  5. ;*******************************************************************;
  6.  
  7. COLOR ATTRIBUTE 31
  8. SCREEN WIPE SPLIT
  9.  
  10. SHOW SCREEN "SHOW1.SCR" TXT
  11. WAIT 1
  12. COLOR ATTRIBUTE 95
  13. EFFECT POINT 5 7
  14. GOXY 4 08 DRAW BOX 43 7
  15. GOXY 5 09 WRITE "In this example you'll learn how to create"
  16. GOXY 5 10 WRITE "your first simple script.  Scripts are the"
  17. GOXY 5 11 WRITE "the basis for all promotions/tutorials.   "
  18. GOXY 5 12 WRITE "                                          "
  19. GOXY 5 13 WRITE "You start in the main screen by selecting "
  20. GOXY 5 14 WRITE "F3 to enter the Script Center.            "
  21.  
  22. MARK 201
  23. READ KEY inkey
  24. CASE KEY inkey 461 DO JUMPMARK 202  ; F3 key
  25. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  26. MUSIC SOUND A 2 200
  27. JUMPMARK 201
  28. MARK 202
  29.  
  30. SHOW SCREEN "SHOW3.SCR" TXT
  31. WAIT 1
  32. GOXY 4 08 DRAW BOX 46 7
  33. GOXY 5 09 WRITE "In the Script Center you write commands to be"
  34. GOXY 5 10 WRITE "be executed.  The Script Center is suited for"
  35. GOXY 5 11 WRITE "making scripts.  With the  many commands  you"
  36. GOXY 5 12 WRITE "can create powerful scripts.  You either type"
  37. GOXY 5 13 WRITE "in commands yourself or as in this case,  use"
  38. GOXY 5 14 WRITE "the F9 key to select between commands.       "
  39.  
  40. MARK 203
  41. READ KEY inkey
  42. CASE KEY inkey 467 DO JUMPMARK 204  ; F9 key
  43. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  44. MUSIC SOUND A 2 200
  45. JUMPMARK 203
  46. MARK 204
  47.  
  48. SHOW SCREEN "SHOW4.SCR" TXT
  49. GOXY 4 08 DRAW BOX 43 4
  50. GOXY 5 09 WRITE "First you select the Screen Command. It is"
  51. GOXY 5 10 WRITE "already highlighted,  so you can just  hit"
  52. GOXY 5 11 WRITE "the <Enter> key to select it.             "
  53.  
  54. MARK 205
  55. READ KEY inkey
  56. CASE KEY inkey 13 DO JUMPMARK 206   ; <Enter> key
  57. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  58. MUSIC SOUND A 2 200
  59. JUMPMARK 205
  60. MARK 206
  61.  
  62. SHOW SCREEN "GUIDE1.SCR" TXT
  63. GOXY 4 08 DRAW BOX 40 5
  64. GOXY 5 09 WRITE "Usually a script  starts by erasing the"
  65. GOXY 5 10 WRITE "current screen.  So  as a parameter  to"
  66. GOXY 5 11 WRITE "the SCREEN command  you push <Enter> to"
  67. GOXY 5 12 WRITE "select the highlighted CLEAR command.  "
  68.  
  69. MARK 207
  70. READ KEY inkey
  71. CASE KEY inkey 13 DO JUMPMARK 208   ; <Enter> key
  72. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  73. MUSIC SOUND A 2 200
  74. JUMPMARK 207
  75. MARK 208
  76.  
  77. SHOW SCREEN "GUIDE2.SCR" TXT
  78. GOXY 4 08 DRAW BOX 46 6
  79. GOXY 5 09 WRITE "So you can see, you can easily select between"
  80. GOXY 5 10 WRITE "commands with the F9 key.  But you can also  "
  81. GOXY 5 11 WRITE "write commands directly in the editor. On the"
  82. GOXY 5 12 WRITE "current line write the following command:    "
  83. GOXY 5 13 WRITE 'GOXY 10 10 WRITE "HELLO WORLD"               '
  84.  
  85. COLOR ATTRIBUTE 63
  86. VARIABLE VALUE instr ""
  87. MARK 209
  88. GOXY 2 5 READ STRING UPPER instr 32
  89. CASE STRING UPPER instr 'GOXY 10 10 WRITE "HELLO WORLD"' DO JUMPMARK 210
  90. MUSIC SOUND A 2 200
  91. JUMPMARK 209
  92. MARK 210
  93.  
  94. SHOW SCREEN "GUIDE3.SCR" TXT
  95. COLOR ATTRIBUTE 95
  96. GOXY 4 08 DRAW BOX 43 5
  97. GOXY 5 09 WRITE "And on line 3, you then want the script to"
  98. GOXY 5 10 WRITE "halt a little bit before it finishes. This"
  99. GOXY 5 11 WRITE "can be done with the command you enter:   "
  100. GOXY 5 12 WRITE "WAIT 4                                    "
  101.  
  102. COLOR ATTRIBUTE 63
  103. VARIABLE VALUE instr ""
  104. MARK 210
  105. GOXY 2 6 READ STRING UPPER instr 7
  106. CASE STRING UPPER instr "WAIT 4" DO JUMPMARK 211
  107. MUSIC SOUND A 2 200
  108. JUMPMARK 210
  109. MARK 211
  110.  
  111. SCREEN GET
  112.  
  113. COLOR ATTRIBUTE 95
  114. GOXY 4 08 DRAW BOX 43 5
  115. GOXY 5 09 WRITE "Now you must save the file. You push the  "
  116. GOXY 5 10 WRITE "F2 key and select save file (since it is  "
  117. GOXY 5 11 WRITE "highlighted, you just press <Enter>. First"
  118. GOXY 5 12 WRITE "F2 then <Enter>                           "
  119.  
  120. MARK 212
  121. READ KEY inkey
  122. CASE KEY inkey 460 DO JUMPMARK 213  ; F2 key
  123. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  124. MUSIC SOUND A 2 200
  125. JUMPMARK 212
  126. MARK 213
  127.  
  128. SHOW SCREEN "GUIDE4.SCR" TXT
  129.  
  130. MARK 214
  131. READ KEY inkey
  132. CASE KEY inkey 13 DO JUMPMARK 215   ; <Enter> key
  133. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  134. MUSIC SOUND A 2 200
  135. JUMPMARK 214
  136. MARK 215
  137.  
  138. SHOW SCREEN "GUIDE13.SCR" TXT
  139.  
  140. GOXY 3 08 DRAW BOX 44 4
  141. GOXY 4 09 WRITE "To keep the names of files somewhat in line"
  142. GOXY 4 10 WRITE "with each other, you should give the script"
  143. GOXY 4 11 WRITE "a meaningfull name, here HELLO.SHW         "
  144.  
  145. COLOR ATTRIBUTE 63
  146. VARIABLE VALUE instr ""
  147. MARK 216
  148. GOXY 46 20 READ STRING instr 12
  149. CASE STRING UPPER instr "HELLO.SHW" DO JUMPMARK 217
  150. MUSIC SOUND A 2 200
  151. JUMPMARK 216
  152. MARK 217
  153.  
  154. SCREEN PUT
  155.  
  156. COLOR ATTRIBUTE 95
  157. GOXY 4 08 DRAW BOX 44 5
  158. GOXY 5 09 WRITE "The script has been saved  and you can  now"
  159. GOXY 5 10 WRITE "run it from the main menu. To return to the"
  160. GOXY 5 11 WRITE "main menu push F10                         "
  161. GOXY 5 12 WRITE "                                           "
  162.  
  163. MARK 218
  164. READ KEY inkey
  165. CASE KEY inkey 468 DO JUMPMARK 219  ; F10 key
  166. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  167. MUSIC SOUND A 2 200
  168. JUMPMARK 218
  169. MARK 219
  170.  
  171. SHOW SCREEN "SHOW1.SCR" TXT
  172. GOXY 3 08 DRAW BOX 42 6
  173. GOXY 4 09 WRITE "To run a script you must always be in the"
  174. GOXY 4 10 WRITE "main menu. Also there's a runtime version"
  175. GOXY 4 11 WRITE "that runs scripts.  Scripts  are executed"
  176. GOXY 4 12 WRITE "from the 'Files' menu, so you push F2 and"
  177. GOXY 4 13 WRITE "push <Enter> to run script from start.   "
  178.  
  179. MARK 220
  180. READ KEY inkey
  181. CASE KEY inkey 460 DO JUMPMARK 221  ; F2 key
  182. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  183. MUSIC SOUND A 2 200
  184. JUMPMARK 220
  185. MARK 221
  186.  
  187. SHOW SCREEN "GUIDE11.SCR" TXT
  188. MARK 222
  189. READ KEY inkey
  190. CASE KEY inkey 13 DO JUMPMARK 223   ; <Enter> key
  191. CASE KEY inkey 27 DO JUMPMARK 1     ; <Esc> key
  192. MUSIC SOUND A 2 200
  193. JUMPMARK 222
  194. MARK 223
  195.  
  196. SHOW SCREEN "GUIDE12.SCR" TXT
  197. GOXY 3 08 DRAW BOX 39 4
  198. GOXY 4 09 WRITE "The script you must execute is the one"
  199. GOXY 4 10 WRITE "we just saved in the Script Center. So"
  200. GOXY 4 11 WRITE "you write HELLO.SHW                   "
  201.  
  202. COLOR ATTRIBUTE 63
  203. VARIABLE VALUE instr ""
  204. MARK 224
  205. GOXY 46 20 READ STRING instr 12
  206. CASE STRING UPPER instr "HELLO.SHW" DO JUMPMARK 225
  207. MUSIC SOUND A 2 200
  208. JUMPMARK 224
  209. MARK 225
  210.  
  211. COLOR ATTRIBUTE 95
  212. GOXY 3 08 DRAW BOX 40 4
  213. GOXY 4 09 WRITE "The script will be executed right away."
  214. GOXY 4 10 WRITE "When the script has finished GUIDE will"
  215. GOXY 4 11 WRITE "return with a show message.            "
  216. WAIT 3
  217.  
  218. ; Here we mimic the slide behavior.
  219. SCREEN CLEAR
  220. GOXY 10 10 WRITE "HELLO WORLD"
  221. WAIT 4
  222.  
  223. COLOR ATTRIBUTE 111
  224. SCREEN WIPE SPLIT
  225. COLOR ATTRIBUTE 95
  226. GOXY 3 08 DRAW BOX 41 7
  227. GOXY 4 09 WRITE "This concludes the simple guided tour on"
  228. GOXY 4 10 WRITE "how to make  a very simple slide show u-"
  229. GOXY 4 11 WRITE "sing the Script Center.  There are  very"
  230. GOXY 4 12 WRITE "powerful features within all of many me-"
  231. GOXY 4 13 WRITE "nues  and Centers  in DataShow.  So play"
  232. GOXY 4 14 WRITE "with it all and learn MultiMedia!       "
  233.  
  234. ; Place to jump to if <Esc> is pushed.
  235. MARK 1
  236.